home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-09-12 | 2.1 KB | 106 lines |
- #
- # Makefile for MIDIKEYB ('MIDI Keyboard') custom control.
- #
- # (C) Copyright Microsoft Corp. 1991. All rights reserved.
- #
-
-
- # comment the following macro out if this is a RELEASE make.
- #DEBUG = TRUE
-
- # set these macros to control where stuff is placed/redirected
- OUTPUT = con
- WINAPPS = c:\mwindows
- WINLIB = c:\mdk\lib
- WININC = c:\mdk\include
- !IFNDEF WINDIR
- WINDIR = c:\mwindows
- !ENDIF
-
-
- !IFDEF DEBUG
-
- AS = masm -Mx -Zi
- CC = cl -c -DDEBUG -AM -G2w -Owd -W3 -Zipe
- RC = rc -v -DDEBUG
- LN = link /NOD/NOE/A:16/CO
-
- !ELSE
-
- AS = masm -Mx
- CC = cl -c -DRELEASE -AM -G2sw -Ows -W3 -Zpe
- RC = rc -v -DRELEASE
- LN = link /NOE/NOD/A:16
-
- !ENDIF
-
-
- .asm.obj:
- $(AS) $*;
-
- .c.obj :
- @echo Compiling $*.c... >$(OUTPUT)
- $(CC) -NT $* $*.c >$*.err
- @type $*.err >$(OUTPUT)
-
-
- MISC = makefile
-
- INCS = midikeyb.h
- SRCS = midikeyb.c
- OBJS = midikeyb.obj
-
-
- all : midikeyb.lib testkeyb.exe
-
-
- testkeyb.exe: testkeyb.obj testkeyb.res testkeyb.def midikeyb.lib
- $(LN) @testkeyb.lnk
- $(RC) testkeyb.res
-
- testkeyb.exe: testkeyb.res
- $(RC) testkeyb.res
-
- testkeyb.obj: testkeyb.c testkeyb.h midikeyb.h
-
- testkeyb.res: testkeyb.rc testkeyb.h testkeyb.ico
- $(RC) -r testkeyb.rc
-
-
- midikeyb.lib: $(OBJS)
- del midikeyb.lib
- lib midikeyb.lib +$(OBJS) ;
- # copy midikeyb.lib $(WINLIB)
- # copy midikeyb.h $(WININC)
-
- midikeyb.obj: midikeyb.c midikeyb.h
-
-
- # MISC. STUFF
-
- zip : clean
- pkzip -a midikeyb.zip *.*
-
- clean :
- del *.lib
- del *.exe
- del *.err
- del *.res
- del *.obj
- del *.map
- del *.sym
- del *.zip
-
- ship : all
- del *.err
- del *.res
- del *.obj
- del *.map
- del *.sym
- del *.zip
- touch *.*
- pkzip -a midikeyb.zip *.*
-
-
-
-